<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <#include "/common/common_head.ftl">
  </head>
  <body style="padding-top:0px">
        <!-- 主内容区域 S -->
 		<div class="" id="mainBoard">
        <#if version??>
            <#assign operate="编辑">
        <#else>
            <#assign operate="添加">
        </#if>
		<!-- 导航路径 S -->
		<ol class="breadcrumb">
		  <li><a href="#">版本管理</a></li>
		  <li class="active">${operate}版本信息</li>
		  <li><a href="list.do?page=${page}">返回</a></li>
		</ol>
		<!-- 导航路径 E -->

		<!-- 标题区 S -->
		<h2 class="sub-header">${operate}版本信息</h2>
		<!-- 标题区 E -->

		<!-- 内容区 S -->
        <#if version??>
		<form action="save.do" method="post" enctype="multipart/form-data">
		    <input type="hidden" name="id"         value="${version.id?string('###')}">
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">应用名称</span>
                <input class="form-control" placeholder="appName" aria-describedby="basic-addon5" name="appName" value="${version.appName?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">应用标识</span>
                <input class="form-control" placeholder="appKey" aria-describedby="basic-addon5" name="appKey" value="${version.appKey?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">文件类型</span>
                <select class="form-control" name="fileType" id="fileType">
                    <option value="1" <#if version.fileType == 1>selected="selected"</#if>>版本</option>
                    <option value="2" <#if version.fileType == 2>selected="selected"</#if>>补丁</option>
                </select>
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">文件路径</span>
                <input class="form-control" placeholder="fileUrl" aria-describedby="basic-addon5" name="fileUrl" value="${version.fileUrl?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">文件上传</span>
                <input type="file" class="form-control" placeholder="uploadfile" aria-describedby="basic-addon2" name="file">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">版本编号 </span>
                <input class="form-control" placeholder="versionCode" aria-describedby="basic-addon5" name="versionCode" value="${version.versionCode?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">版本名称</span>
                <input class="form-control" placeholder="versionName" aria-describedby="basic-addon5" name="versionName" value="${version.versionName?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">补丁编号 </span>
                <input class="form-control" placeholder="patchCode" aria-describedby="basic-addon5" name="patchCode" value="${version.patchCode?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">补丁名称</span>
                <input class="form-control" placeholder="patchName" aria-describedby="basic-addon5" name="patchName" value="${version.patchName?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">更新日志</span>
                <input class="form-control" placeholder="changeLog" aria-describedby="basic-addon5" name="changeLog" value="${version.changeLog?if_exists}">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">强制更新</span>
                <select class="form-control" name="enforce" id="enforce">
                    <option value="1" <#if version.enforce == 1>selected="selected"</#if>>是</option>
                    <option value="0" <#if version.enforce == 0>selected="selected"</#if>>否</option>
                </select>
            </div>
			<div class="input-group">
                <span class="input-group-addon" id="basic-addon2">描述信息</span>
                <input class="form-control" placeholder="remark" aria-describedby="basic-addon5" name="remark" value="${version.remark?if_exists}">
            </div>
            <button type="submit" class="btn btn-default">提交</button>

		</form>
        <#else>
		<form action="save.do" method="post" enctype="multipart/form-data">
            <div class="input-group">
              <span class="input-group-addon" id="basic-addon2">应用名称</span>
              <input class="form-control" placeholder="appName" aria-describedby="basic-addon5" name="appName">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">应用标识</span>
                <input class="form-control" placeholder="appKey" aria-describedby="basic-addon5" name="appKey">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">文件类型</span>
                <select class="form-control" name="fileType" id="fileType">
                    <option value="1">版本</option>
                    <option value="2">补丁</option>
                </select>
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">文件上传</span>
                <input type="file" class="form-control" placeholder="uploadfile" aria-describedby="basic-addon2" name="file">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">版本编号</span>
                <input class="form-control" placeholder="versionCode" aria-describedby="basic-addon5" name="versionCode">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">版本名称</span>
                <input class="form-control" placeholder="versionName" aria-describedby="basic-addon5" name="versionName">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">补丁编号</span>
                <input class="form-control" placeholder="patchCode" aria-describedby="basic-addon5" name="patchCode">
            </div>
            
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">补丁名称</span>
                <input class="form-control" placeholder="patchName" aria-describedby="basic-addon5" name="patchName">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">更新日志</span>
                <input class="form-control" placeholder="changeLog" aria-describedby="basic-addon5" name="changeLog">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">强制更新</span>
                <select class="form-control" name="enforce" id="enforce">
                    <option value="1">是</option>
                    <option value="0">否</option>
                </select>
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2">描述信息</span>
                <input class="form-control" placeholder="remark" aria-describedby="basic-addon5" name="remark">
            </div>
            <button type="submit" class="btn btn-default">提交</button>

		</form>
        </#if>
		<!-- 内容区 E -->
 		<!-- 主内容区域 E -->
		
 	</div>
  </body>
</html>
